import request from "@/utils/request";

// 房地产销售情况统计-产品与购房人关系-关系图-graph
export const getSupplyDemandProductHousehold = (params: any) => {
  return request({
    url: "/screen/supplyDemand/productHousehold",
    method: "post",
    data: params,
  });
};

// 房地产销售情况统计-宏观经济数据统计-散点图-scatter
export const getSupplyDemandMacroeconomic = (params: any) => {
  return request({
    url: "/screen/supplyDemand/macroeconomic",
    method: "post",
    data: params,
  });
};

// 房地产销售情况统计-房屋销量趋势统计开发商下拉选择
export const getSupplyDemandDeveloperSelection = (params: any) => {
  return request({
    url: "/screen/supplyDemand/developerSelection",
    method: "post",
    data: params,
  });
};

// 房地产销售情况统计-房屋销量趋势统计户型下拉选
export const getSupplyDemandRoomSelection = (params: any) => {
  return request({
    url: "/screen/supplyDemand/roomSelection",
    method: "post",
    data: params,
  });
};

// 房地产销售情况统计-房屋销量趋势统计
export const getSupplyDemandHouseSalesTrends = (params: any) => {
  return request({
    url: "/screen/supplyDemand/houseSalesTrends",
    method: "post",
    data: params,
  });
};

// 房地产土地供应统计-矩形树图和折线图
export const getSupplyDemandLandSupply = (params: any) => {
  return request({
    url: "/screen/supplyDemand/landSupply",
    method: "post",
    data: params,
  });
};

// 本地各区房地产面积供应统计(根据requestType类型)-柱形图
export const getSupplyDemandAreaSupply = (params: any) => {
  return request({
    url: "/screen/supplyDemand/areaSupply",
    method: "post",
    data: params,
  });
};

// 房地产房屋库存统计-矩形树图和折线图
export const getSupplyDemandDeveloperNum = (params: any) => {
  return request({
    url: "/screen/supplyDemand/developerNum",
    method: "post",
    data: params,
  });
};

// 政策列表
export const getSupplyDemandPolicyList = (params: any) => {
  return request({
    url: "/screen/supplyDemand/policyList",
    method: "post",
    data: params,
  });
};

// 微观经济数据统计
export const getPersonHousePersonHousePopulation = (params: any) => {
  return request({
    url: "/screen/personHouse/personHousePopulation",
    method: "post",
    data: params,
  });
};

// 新-房地产土地供应统计-新增房屋建筑面积情况
export const getSupplyDemandFetchNewBuildArea = (params: any) => {
  return request({
    url: "/screen/supplyDemand/fetchNewBuildArea",
    method: "post",
    data: params,
  });
};

// 新-房地产土地供应统计-土地供应走势
export const getSupplyDemandCalculateLandSupplyTrend = (params: any) => {
  return request({
    url: "/screen/supplyDemand/calculateLandSupplyTrend",
    method: "post",
    data: params,
  });
};

// 新-房地产房屋库存统计-待售房屋供应情况
export const getSupplyDemandGetHousingInventoryStats = (params: any) => {
  return request({
    url: "/screen/supplyDemand/getHousingInventoryStats",
    method: "post",
    data: params,
  });
};

// 新-房地产房屋库存统计-库存走势
export const getSupplyDemandGetInventoryTrend = (params: any) => {
  return request({
    url: "/screen/supplyDemand/getInventoryTrend",
    method: "post",
    data: params,
  });
};

// 新-房地产销售情况统计-graph-关系图
export const getTransanalysisRecommendedMainstreamLayout = (params: any) => {
  return request({
    url: "/screen/transanalysis/recommendedMainstreamLayout",
    method: "post",
    data: params,
  });
};

// 新-本地各区房地产面积供应统计
export const getSupplyDemandGetAreaSupplyStats = (params: any) => {
  return request({
    url: "/screen/supplyDemand/getAreaSupplyStats",
    method: "post",
    data: params,
  });
};

// 新-房屋标签/购房人标签
export const getSupplyDemandLabelProperty = (params: any) => {
  return request({
    url: "/screen/supplyDemand/labelProperty",
    method: "post",
    data: params,
  });
};

// 新-房屋销量趋势统计
export const getSupplyDemandGetHouseSales = (params: any) => {
  return request({
    url: "/screen/supplyDemand/getHouseSales",
    method: "post",
    data: params,
  });
};
